/*
 * Project Name demo
 * File Name ChatSessionMessage
 * Package Name com.huxiaosu.demo.socketio.entity
 * Create Time 2023/1/31
 * Create by name：liujie
 */
package com.huxiaosu.demo.socketio.entity;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

/**
 * Description
 *
 * @ClassName: ChatSessionMessage
 * @author: liujie
 * @date: 2023/1/31 14:49
 */
@Entity
@Data
@ToString
@Table(name = "chat_session_msg")
@EntityListeners(AuditingEntityListener.class)
public class ChatSessionMessage extends BaseEntity {
    @Column(name = "chat_session_id")
    private String chatSessionId;
    @Column(name = "msg_count", columnDefinition = "text")
    private String msgContent;
    @Column(name = "msg_type")
    private Integer msgType;
    @Column(name = "child_msg_type")
    private Integer childMsgType;
    @Column(name = "sender_account_no")
    private Integer senderAccountNo;
    @Column(name = "sender_account_name")
    private String senderAccountName;
    @Column(name = "sender_org_id")
    private Integer senderOrgId;
    @Column(name = "sender_org_name")
    private String senderOrgName;
    @Column(name = "recipient_account_no")
    private Integer recipientAccountNo;
    @Column(name = "recipient_org_id")
    private Integer recipientOrgId;
    @Column(name = "recipient_account_name")
    private String recipientAccountName;
    @Column(name = "recipient_org_name")
    private String recipientOrgName;
    @Column(name = "send_status")
    private Integer sendStatus;
    @Column(name = "read_status")
    private Integer readStatus;
    @Column(name = "file_id")
    private String fileId;

}